package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.OrderDetail;
import com.itheima.bean.Orders;
import com.itheima.dto.OrdersDto;

import java.util.Date;

/**
 * @author Tang
 * @date 2023/2/25
 */
public interface OrderDetailService extends IService<OrderDetail> {
    /**
     * 订单详情分页查询
     * @param page
     * @param pageSize
     * @return
     */
    Page orderPage(Integer page, Integer pageSize);

    /**
     * 订单状态查询
     * @param page
     * @param pageSize
     * @param beginTime
     * @param endTime
     * @return
     */
//    Orders state(Integer page, Integer pageSize, Date beginTime, Date endTime);

    Page<OrdersDto> getOrders(Integer page, Integer pageSize, String number, Date beginTime, Date endTime);
}
